package logic;

import java.util.ArrayList;
import java.util.Vector;

import sql.CustomerOrders;
import sql.SuppliersOrdersDB;

public class CustomerOrdersLog {

	public ArrayList<String> getCustomersOrders() 
	{
		CustomerOrders sodb = new CustomerOrders();
		return sodb.getCusOrders();
	}

	public Object openCusOrder(ArrayList<String> cusOrderAdd,Vector<Vector<String>> dataCustomersOrder)
	{
		CustomerOrders cobdo = new CustomerOrders();
		return cobdo.openCusOrderDB(cusOrderAdd,dataCustomersOrder);
	}

	public ArrayList<String> getorderfromdb(String id) {
		   
				CustomerOrders cobdo = new CustomerOrders();
				return cobdo.watchorder(id);
	}
	public int updateorderstatuscust(String id,String status) {
		   
		CustomerOrders cobdo = new CustomerOrders();
		return cobdo.updatecuststatusdb(id,status);
}

}
